// Process4.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "../WinAPI/WinAPI.h"


int _tmain(int argc, _TCHAR* argv[])
{
	// Local variables
	SYSTEMTIME sysTime;

	// Function body
	GetLocalTime(&sysTime);
	printf_s("Process4.exe starts at %02u:%02u:%02u on %4u/%02u/%02u.\n", \
			  sysTime.wHour, sysTime.wMinute, sysTime.wSecond, sysTime.wYear, sysTime.wMonth, sysTime.wDay);

	// Sleep to death
	Sleep(INFINITE);

	// Get local time
	GetLocalTime(&sysTime);
	printf_s("Process4.exe terminates at %02u:%02u:%02u on %4u/%02u/%02u.\n", \
		      sysTime.wHour, sysTime.wMinute, sysTime.wSecond, sysTime.wYear, sysTime.wMonth, sysTime.wDay);

	return 0;
}

